package com.sikaryofficial.backend.domain.dto.req.material;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sikaryofficial.common.core.annotation.SqlEscapeDeserializer;
import com.sikaryofficial.common.core.web.page.PageDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

/**
 * 礼品列表请求入参
 *
 * @author qinjinyuan
 * @date 2023-10-30
 */
@Getter
@Setter
@ToString
@ApiModel(value = "素材列表请求入参", description = "素材列表请求入参")
public class MaterialLibraryListReq extends PageDomain {
    /**
     * 素材名称
     */
    @ApiModelProperty(value = "素材名称")
    @Length(max = 50, message = "keyword could not greater than 50 characters")
    @JsonDeserialize(using = SqlEscapeDeserializer.class)
    private String title;
}
